package com.ww.word.entity;

import java.io.IOException;
import java.io.OptionalDataException;
import java.io.Serializable;

public class Word implements Serializable {
	private static final long serialVersionUID = 1L;
	private int id;
	private String name= "";
	private String simple_group= "";
	private String group = "";
	private String explain = "";
	private String simple_explain = "";
	private String time = "";
	private String pinyin = "";
	private boolean store;
	
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSimple_group() {
		return simple_group;
	}

	public void setSimple_group(String simple_group) {
		this.simple_group = simple_group;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public String getSimple_explain() {
		return simple_explain;
	}

	public void setSimple_explain(String simple_explain) {
		this.simple_explain = simple_explain;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	private void readObject(java.io.ObjectInputStream in) throws OptionalDataException, ClassNotFoundException,
			IOException {
		id = in.readInt();
		name = in.readUTF();
		simple_group = in.readUTF();
		group = in.readUTF();
		explain = in.readUTF();
		simple_explain = in.readUTF();
		time = in.readUTF();
		pinyin = in.readUTF();
		store = in.readBoolean();
	}

	private void writeObject(java.io.ObjectOutputStream dest) throws IOException {
		dest.writeInt(this.id);
		dest.writeUTF(this.name);
		dest.writeUTF(this.simple_group);
		dest.writeUTF(this.group);
		dest.writeUTF(this.explain);
		dest.writeUTF(this.simple_explain);
		dest.writeUTF(this.time);
		dest.writeUTF(this.pinyin);
		dest.writeBoolean(this.store);
	}

	public boolean isStore() {
		return store;
	}

	public void setStore(boolean store) {
		this.store = store;
	}

	
}
